package net.bgraham.collectionbatcher;

import java.util.ArrayList;

/**
 * A Batcher that provides sequential inclusion of all collected data in the batch.
 * @param <T>
 */
public class ArrayListBatcher<T> extends Batcher<T>
{

	/**
	 * A Batcher that provides sequential inclusion of all collected data in the batch.
	 * @param batchListener
	 * @param maxTimeToWaitBetweenBatches
	 * @param maxTimeToWaitBetweenUpdates
	 */
	public ArrayListBatcher(final IBatchListener<T> batchListener, long maxTimeToWaitBetweenBatches,
			long maxTimeToWaitBetweenUpdates)
	{
		super(batchListener, maxTimeToWaitBetweenBatches, maxTimeToWaitBetweenUpdates, new ArrayList<T>());
	}

}
